<template>
  <div class="money-item" @click="itemClick">
    ￥{{value}}
  </div>
</template>

<script>
  export default {
    name: "MoneyItem",
    props: {
      value: {
        type: Number,
        default: 0,
      }
    },
    data() {
      return {
      }
    },
    methods: {
      itemClick() {
        this.$emit('itemClickEmit', this.value)
      }
    }
  }
</script>

<style scoped>
  .money-item {
    width: 240px;
    height: 60px;
    line-height: 50px;

    margin: 50px;

    font-weight: bold;
    font-size: 30px;
    text-align: center;

    border-radius: 6px;
    border: 1px solid red;
  }
  .money-item:hover {
    cursor: pointer;
  }
</style>